package com.zhn;

import lombok.extern.slf4j.Slf4j;

//两个线程并发交替执行
@Slf4j(topic = "c.TestThread")
public class TestThread {
    public static void main(String[] args) {
        new Thread(()->{
            while (true) {
                log.debug("running");
            }
        },"t1").start();
        new Thread(()->{
            while (true) {
                log.debug("running");
            }
        },"t2").start();
    }
}
